package com.sitech.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sitech.dao.IUserDao;
import com.sitech.pojo.UserBean;
import com.sitech.service.IUserService;

@Service(value="userServiceImpl")
public class UserServiceImpl implements IUserService{
	//查询by ID
	@Resource
	private IUserDao IUserDao;
	public UserBean selectByID(String username) {	
		return IUserDao.selectByPrimaryKey(username);
	}
	public List<UserBean> select() {	
		return IUserDao.select();
	}
	public void update(UserBean userbean) {	
	    IUserDao.update(userbean);;
	} 
	public void insert(UserBean userbean) {	
	    IUserDao.insert(userbean);;
	}
}
